/**
 * 
 */
package games;

import java.awt.BorderLayout;

import javax.swing.JPanel;

/**
 * @author Owner
 *
 */
public class WaitGame extends Game {
	/**
	 * 
	 */
	private static final long serialVersionUID=1L;
	
	private static final String NAME="WaitGame";
	
	boolean start;

	/**
	 * @param runner
	 */
	public WaitGame(Runner runner,boolean start) {
		super(runner,NAME);
		this.start=start;
	}
	
	public WaitGame(Runner runner) {
		this(runner,true);
	}

	public void init() {
		setLayout(new BorderLayout());
		
		go=new Painter(start?"go":"stop","Click to "+(start?"Start":"End"));
		footer=new JPanel(new BorderLayout());
		footer.add(BorderLayout.CENTER,go);
		
		add(BorderLayout.SOUTH,footer);
		
		hmmm(NAME);
	}

	public void start() {}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	}

}
